File: Makefile

package info (click to toggle)
ftpcopy 0.6.7-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,496 kB
  • sloc: ansic: 10,233; sh: 1,651; makefile: 705; perl: 272
file content (19 lines) | stat: -rw-r--r-- 687 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
all: package/compile
	./package/compile
install: package/install
	./package/install
check: package/check compile/Makefile
	./package/check
compile/Makefile: all
oldinstall: all check
	if test "x$(DEST)" = x ; then echo 'you must set $$DEST: make DEST=/usr/local oldinstall'. ; exit 1 ; fi
	for i in command/* ; do install -c "$$i" $(DEST)/bin/ || exit 1 ; done
	for i in doc/* ; do \
	  case "$$i" in \
	  *.[0-9]) x=`echo "$$i" | sed 's/.*\.//'` ; \
	           install -c $$i $(DEST)/man/man$$x || exit 1 ;; \
	  *) mkdir $(DEST)/doc 2>/dev/null ; \
	     mkdir $(DEST)/doc/ftpcopy-0.6.7 2>/dev/null ; \
	     install -c $$i $(DEST)/doc/ftpcopy-0.6.7/ || exit 1 ;; \
	  esac ; \
	done