diff options
| author | Teddy Wing | 2021-03-07 15:14:11 +0100 |
|---|---|---|
| committer | Teddy Wing | 2021-03-07 15:14:11 +0100 |
| commit | e1cdd8cbde46d8610e05d9a79c3e90b7f2a75c0a (patch) | |
| tree | f60164aee316d631632a8926616dfdd8bdc22311 | |
| parent | 5644398e848cb593de95095dbbafb80025fcaa6b (diff) | |
| download | Re-Good-Catalina-Invert-Colours-e1cdd8cbde46d8610e05d9a79c3e90b7f2a75c0a.tar.bz2 | |
Makefile: Don't copy DDHotKey headers multiple times
Previously, the rule was copying all header files for every header file:
cp lib/DDHotKey/Compatibility.h lib/DDHotKey/DDHotKeyAppDelegate.h lib/DDHotKey/DDHotKeyCenter.h lib/DDHotKey/DDHotKeyTextField.h lib/DDHotKey/DDHotKeyUtilities.h build/include/
cp lib/DDHotKey/Compatibility.h lib/DDHotKey/DDHotKeyAppDelegate.h lib/DDHotKey/DDHotKeyCenter.h lib/DDHotKey/DDHotKeyTextField.h lib/DDHotKey/DDHotKeyUtilities.h build/include/
cp lib/DDHotKey/Compatibility.h lib/DDHotKey/DDHotKeyAppDelegate.h lib/DDHotKey/DDHotKeyCenter.h lib/DDHotKey/DDHotKeyTextField.h lib/DDHotKey/DDHotKeyUtilities.h build/include/
cp lib/DDHotKey/Compatibility.h lib/DDHotKey/DDHotKeyAppDelegate.h lib/DDHotKey/DDHotKeyCenter.h lib/DDHotKey/DDHotKeyTextField.h lib/DDHotKey/DDHotKeyUtilities.h build/include/
cp lib/DDHotKey/Compatibility.h lib/DDHotKey/DDHotKeyAppDelegate.h lib/DDHotKey/DDHotKeyCenter.h lib/DDHotKey/DDHotKeyTextField.h lib/DDHotKey/DDHotKeyUtilities.h build/include/
Change it to only copy once per header:
cp lib/DDHotKey/Compatibility.h build/include/
cp lib/DDHotKey/DDHotKeyAppDelegate.h build/include/
cp lib/DDHotKey/DDHotKeyCenter.h build/include/
cp lib/DDHotKey/DDHotKeyTextField.h build/include/
cp lib/DDHotKey/DDHotKeyUtilities.h build/include/
| -rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -16,7 +16,7 @@ all: $(SOURCES) build/libddhotkey.a build/include/*.h -o invert-catalina-invert \ $(SOURCES) -build/include/*.h: lib/DDHotKey/*.h +build/include/%.h: lib/DDHotKey/%.h cp $^ build/include/ lib/DDHotKey/%.o: lib/DDHotKey/%.m |
