]> rtime.felk.cvut.cz Git - omk.git/commitdiff
Fix strange behaviour of $(dir) function
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 4 Oct 2013 15:10:42 +0000 (17:10 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 4 Oct 2013 15:10:42 +0000 (17:10 +0200)
This fixes the error in the test suite

snippets/include.omk

index 477fb13a8fcc56ad2341a432039d0314c554d180..edc1e4ec7c6ec224498ea2f132f139ef29f8a483 100644 (file)
@@ -8,7 +8,7 @@ ifneq ($(LN_HEADERS),y)
 define cp_cmd
 if ! cmp -s $(1) $(2); then \
     echo "  CP      $(1:$(OUTPUT_DIR)/%=%) -> $(2:$(OUTPUT_DIR)/%=%)"; \
-    install -d $(CPHEADER_FLAGS) $(dir $(2)) && \
+    install -d $(CPHEADER_FLAGS) `dirname $(2)` && \
     install $(CPHEADER_FLAGS) $(1) $(2) || exit 1; \
 fi
 endef