File: Makefile

package info (click to toggle)
fbpanel 4.3-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 544 kB
  • ctags: 985
  • sloc: ansic: 7,668; makefile: 204; sh: 48
file content (27 lines) | stat: -rw-r--r-- 623 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
# Part 0
# load common stuff
TOPDIR = ..
include $(TOPDIR)/Makefile.common

# backslashify slashes to avoid problems with sed
BPREFIX := $(subst /,\/,$(PREFIX))

CFG := $(wildcard *.cfg)
TARGET := $(CFG:%.cfg=%)

all: $(TARGET)

%: %.cfg
	$(call summary,TEXT,$@)
	$(Q)sed 's/PREFIX/$(BPREFIX)/g' < $< > $@


install: 
	install -d  $(PREFIX)/share/fbpanel
	install -m 644 $(TARGET) $(PREFIX)/share/fbpanel
	install -d  $(PREFIX)/share/fbpanel/images
	install -m 644 images/*.png $(PREFIX)/share/fbpanel/images
	install -m 644 images/*.xpm $(PREFIX)/share/fbpanel/images

uninstall:
	$(RM) -r $(PREFIX)/share/fbpanel/images/