Combine symlink rules into single rule

This commit is contained in:
Evie Litherland-Smith 2023-01-27 13:49:52 +00:00
parent 0af61cf77e
commit 8f5b14ad6d

View file

@ -35,12 +35,9 @@ config: $(CONFIG_TARGETS) $(SYSTEMD_TARGETS) $(FONT_TARGETS)
bin: $(BIN_TARGETS) $(PACKER_DIR) bin: $(BIN_TARGETS) $(PACKER_DIR)
$(CONFIG_TARGETS): $(CONFIG_DIR)/%: config/% $(CONFIG_TARGETS): $(CONFIG_DIR)/%: config/%
ln -s $(PWD)/$? $@
$(SYSTEMD_TARGETS): $(SYSTEMD_DIR)/%: systemd/% $(SYSTEMD_TARGETS): $(SYSTEMD_DIR)/%: systemd/%
ln -s $(PWD)/$? $@
$(FONT_TARGETS): $(FONT_DIR)/%: nerdfont_symbols/% $(FONT_TARGETS): $(FONT_DIR)/%: nerdfont_symbols/%
$(CONFIG_TARGETS) $(SYSTEMD_TARGETS) $(FONT_TARGETS):
ln -s $(PWD)/$? $@ ln -s $(PWD)/$? $@
$(BIN_TARGETS): $(LOCAL_BIN)/%: bin/% $(BIN_TARGETS): $(LOCAL_BIN)/%: bin/%