File: Makefile

package info (click to toggle)
apcupsd 3.14.14-7
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 7,904 kB
  • sloc: ansic: 24,826; cpp: 9,230; sh: 4,484; makefile: 1,200; tcl: 368; objc: 317; php: 107
file content (22 lines) | stat: -rw-r--r-- 652 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.NOTPARALLEL:

topdir:=..

SUBDIRS = etc $(DISTDIR)
include $(topdir)/autoconf/targets.mak

all-install: install-platform
all-uninstall: uninstall-platform

install-platform:
	$(call MKDIR,$(sysconfdir))
	$(if $(wildcard ./$(DISTNAME)/apccontrol), \
      $(call INSTORIG,744,$(DISTNAME)/apccontrol,$(sysconfdir)), \
      $(call INSTORIG,744,apccontrol,$(sysconfdir)))
	$(if $(HALPOLICYDIR),$(call MKDIR,$(HALPOLICYDIR)))
	$(if $(HALPOLICYDIR),$(call INSTDATA,644,80-apcupsd-ups-policy.fdi,$(HALPOLICYDIR)))

uninstall-platform:
	$(call UNINST,$(sysconfdir)/apccontrol)
	$(if $(HALPOLICYDIR),$(call UNINST,$(HALPOLICYDIR)/80-apcupsd-ups-policy.fdi))