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 (20 lines) | stat: -rw-r--r-- 648 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Main build script
# (C) Copyright IBM Corp. 2008-2009
# Licensed under the GPLv2.

include ../Rules.mk
BUILD_FILES=pwrkap.desktop
OTHER_FILES=pwrkap_aggregate.conf ui.glade pwrkap.svg
INSTALL_FILES=$(BUILD_FILES) $(OTHER_FILES)

pwrkap.desktop: pwrkap.desktop.template
	sed -e 's|%PREFIX%|$(PREFIX)|g' < $^ > $@

all: $(INSTALL_FILES)

clean:

install: $(INSTALL_FILES)
	mkdir -p $(INST_PREFIX)$(PREFIX)/share/pwrkap $(INST_PREFIX)$(PREFIX)/share/applications
	$(INSTALL) $(OTHER_FILES) -o root -g root -m 644 -t $(INST_PREFIX)$(PREFIX)/share/pwrkap
	$(INSTALL) pwrkap.desktop -o root -g root -m 644 -t $(INST_PREFIX)$(PREFIX)/share/applications