blob: 3409e9e1c3a6721530136fee818a2ef88c017dd2 (
plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
|
include config.mk
all: $(TARGET)
$(TARGET):
@$(MAKE) -C $(SRCDIR)
clean:
@$(MAKE) clean -C $(SRCDIR)
install: all install-man install-data
install -Dm 755 $(SRCDIR)/$(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
install-man:
install -Dm 644 $(DOCDIR)/$(MANFILE) $(DESTDIR)$(MAN1DIR)/$(MANFILE)
install-data:
install -Dm 644 $(SHAREDIR)/hints.js $(DESTDIR)$(DATADIR)/$(REAL_NAME)/scripts/hints.js
install -Dm 644 $(SHAREDIR)/selection.js $(DESTDIR)$(DATADIR)/$(REAL_NAME)/scripts/selection.js
install -Dm 644 $(LIBDIR)/info.html $(DESTDIR)$(DATADIR)/$(REAL_NAME)/$(LIBDIR)/info.html
install -Dm 644 $(LIBDIR)/head.html $(DESTDIR)$(DATADIR)/$(REAL_NAME)/$(LIBDIR)/head.html
install -Dm 644 $(LIBDIR)/settings.html $(DESTDIR)$(DATADIR)/$(REAL_NAME)/$(LIBDIR)/settings.html
install -Dm 644 $(LIBDIR)/keys.html $(DESTDIR)$(DATADIR)/$(REAL_NAME)/$(LIBDIR)/keys.html
uninstall: uninstall-man uninstall-data
@echo "Removing executable from $(subst //,/,$(DESTDIR)$(BINDIR))"
@$(RM) $(DESTDIR)$(BINDIR)/$(TARGET)
uninstall-man:
$(RM) $(DESTDIR)$(MAN1DIR)$(MANFILE)
uninstall-data:
$(RM) -r $(DESTDIR)$(DATADIR)/$(REAL_NAME)
distclean: clean
snapshot:
@$(MAKE) dist DISTDIR=$(REAL_NAME)-$(BUILDDATE)
dist: distclean
@echo "Creating tarball."
@hg archive -t tgz $(DISTDIR).tar.gz
.PHONY: clean all install uninstall dist distclean
|