File: Makefile

package info (click to toggle)
pwrkap 7.30-5
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 464 kB
  • ctags: 491
  • sloc: python: 3,667; makefile: 134; sh: 101
file content (31 lines) | stat: -rw-r--r-- 798 bytes parent folder | download
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
# Main build script
# (C) Copyright IBM Corp. 2008-2009
# Licensed under the GPLv2.

include ../Rules.mk
BUILD_FILES=pwrkap_aggregate pwrkap_cli pwrkap_gtk pwrkap_main

all: $(BUILD_FILES)

clean:;
	rm -rf $(BUILD_FILES)

pwrkap_aggregate: pwrkap.sh.template
	sed -e 's|%PREFIX%|$(PREFIX)|g' -e 's/%PROGRAM%/$@/g' < $^ > $@
	chmod a+x $@

pwrkap_cli: pwrkap.sh.template
	sed -e 's|%PREFIX%|$(PREFIX)|g' -e 's/%PROGRAM%/$@/g' < $^ > $@
	chmod a+x $@

pwrkap_gtk: pwrkap.sh.template
	sed -e 's|%PREFIX%|$(PREFIX)|g' -e 's/%PROGRAM%/$@/g' < $^ > $@
	chmod a+x $@

pwrkap_main: pwrkap.sh.template
	sed -e 's|%PREFIX%|$(PREFIX)|g' -e 's/%PROGRAM%/$@/g' < $^ > $@
	chmod a+x $@

install: all
	mkdir -p $(INST_PREFIX)$(PREFIX)/bin
	$(INSTALL) $(BUILD_FILES) -o root -g root -t $(INST_PREFIX)$(PREFIX)/bin