made installHeader use symlink instead of copying PROJECT_NAME.h

This commit is contained in:
Václav Šmejkal 2022-11-18 13:03:50 +01:00
parent e70b54da69
commit e20a5e7b94
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -31,7 +31,7 @@ noTarget: # Do not use this, please <3
installHeader: installHeader:
for file in $(INCLUDE); do install -m 755 -D $(DOLLAR)file -t $(INSTALL_INCLUDE)/$(PROJECT_NAME); done for file in $(INCLUDE); do install -m 755 -D $(DOLLAR)file -t $(INSTALL_INCLUDE)/$(PROJECT_NAME); done
install -m 755 $(INCLUDE_DIR)/$(PROJECT_NAME).h $(INSTALL_INCLUDE)/$(PROJECT_NAME).h ln -sf $(INSTALL_INCLUDE)/$(PROJECT_NAME)/$(PROJECT_NAME).h $(INSTALL_INCLUDE)/$(PROJECT_NAME).h
installLib: installLib:
$(CC) $(CFLAGS) -fPIC -c $(SRC) $(CC) $(CFLAGS) -fPIC -c $(SRC)