File: Makefile.html-package

package info (click to toggle)
gimp-help 3.0.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 289,524 kB
  • sloc: xml: 115,826; sh: 3,852; python: 1,004; makefile: 585; perl: 134
file content (30 lines) | stat: -rw-r--r-- 912 bytes parent folder | download | duplicates (7)
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
LANGUAGE    = en
PREFIX      = /usr
DATADIR     = $(PREFIX)/share
GIMPDATADIR = $(shell pkg-config --variable=gimpdatadir gimp-2.0 2>/dev/null || \
                      echo $(DATDIR)/gimp/2.0)
DESTDIR     = 
install_dir = install -d -m 755
copy_r      = cp -R
remove      = rm -rf

.PHONY: help
help:
	@echo "Type 'make install [DESTDIR=path] [GIMPDATADIR=path]'"
	@echo "to install the HTML files for language '$(LANGUAGE)' to"
	@echo "    \$$DESTDIR$(GIMPDATADIR)/help/$(LANGUAGE)."
	@echo
	@echo "Controlling variables:"
	@echo "    GIMPDATADIR:  $(GIMPDATADIR)"
	@echo "    DESTDIR:      $(DESTDIR)"
	@test -d $(GIMPDATADIR) || \
	{ echo; echo "WARNING: $(GIMPDATADIR) does not exist!"; }
	@echo

install: html/$(LANGUAGE)
	$(install_dir) $(DESTDIR)$(GIMPDATADIR)/help
	$(copy_r) $< $(DESTDIR)$(GIMPDATADIR)/help

uninstall:
	test -n "$(LANGUAGE)" && \
	$(remove) $(DESTDIR)$(GIMPDATADIR)/help/$(LANGUAGE)