summaryrefslogtreecommitdiff
path: root/astro/routino/files/patch-web_Makefile
blob: e87a7becd44d5d2637f3674d52aedc8ce1d7064e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
--- web/Makefile.orig	2016-06-04 17:03:11 UTC
+++ web/Makefile
@@ -64,8 +64,8 @@ all-bin: all-exe
 	@[ -d $(WEBBINDIR) ] || mkdir -p $(WEBBINDIR)
 	@for file in $(EXE_FILES); do \
 	    if [ -f $(SRCDIR)/$$file -a ! -f $(WEBBINDIR)/$$file ] || [ $(SRCDIR)/$$file -nt $(WEBBINDIR)/$$file ]; then \
-	       echo cp $(SRCDIR)/$$file $(WEBBINDIR) ;\
-	       cp -f $(SRCDIR)/$$file $(WEBBINDIR) ;\
+	       echo install $(SRCDIR)/$$file $(WEBBINDIR) ;\
+	       install $(SRCDIR)/$$file $(WEBBINDIR) ;\
 	    fi ;\
 	 done
 
@@ -75,14 +75,14 @@ all-data: all-xml
 	@[ -d $(WEBDATADIR) ] || mkdir -p $(WEBDATADIR)
 	@for file in $(STANDARD_XML_FILES); do \
 	    if [ ! -f $(WEBDATADIR)/$$file ] || [ $(XMLDIR)/routino-$$file -nt $(WEBDATADIR)/$$file ]; then \
-	       echo cp $(XMLDIR)/routino-$$file $(WEBDATADIR)/$$file ;\
-	       cp -f $(XMLDIR)/routino-$$file $(WEBDATADIR)/$$file ;\
+	       echo install $(XMLDIR)/routino-$$file $(WEBDATADIR)/$$file ;\
+	       install $(XMLDIR)/routino-$$file $(WEBDATADIR)/$$file ;\
 	    fi ;\
 	 done
 	@for file in $(SPECIAL_XML_FILES); do \
 	    if [ ! -f $(WEBDATADIR)/$$file ] || [ $(XMLDIR)/$$file -nt $(WEBDATADIR)/$$file ]; then \
-	       echo cp $(XMLDIR)/$$file $(WEBDATADIR)/$$file ;\
-	       cp -f $(XMLDIR)/$$file $(WEBDATADIR)/$$file ;\
+	       echo install $(XMLDIR)/$$file $(WEBDATADIR)/$$file ;\
+	       install $(XMLDIR)/$$file $(WEBDATADIR)/$$file ;\
 	    fi ;\
 	 done
 
@@ -92,8 +92,8 @@ all-doc:
 	@[ -d $(WEBDOCDIR) ] || mkdir -p $(WEBDOCDIR)
 	@for file in $(DOC_FILES); do \
 	    if [ ! -f $(WEBDOCDIR)/$$file ] || [ $(DOCDIR)/html/$$file -nt $(WEBDOCDIR)/$$file ]; then \
-	       echo cp $(DOCDIR)/html/$$file $(WEBDOCDIR) ;\
-	       cp -f $(DOCDIR)/html/$$file $(WEBDOCDIR) ;\
+	       echo install $(DOCDIR)/html/$$file $(WEBDOCDIR) ;\
+	       install $(DOCDIR)/html/$$file $(WEBDOCDIR) ;\
 	    fi ;\
 	 done
 
@@ -116,12 +116,12 @@ all-translations: $(WEBWWWDIR)/router.ht
 ifeq ($(HOST),MINGW)
 
 $(WEBWWWDIR)/router.html: $(WEBWWWDIR)/router.html.en
-	@echo cp $< $@
-	@cp -f $< $@
+	@echo install $< $@
+	@install $< $@
 
 $(WEBWWWDIR)/visualiser.html: $(WEBWWWDIR)/visualiser.html.en
-	@echo cp $< $@
-	@cp -f $< $@
+	@echo install $< $@
+	@install $< $@
 
 else