File: Makefile

package info (click to toggle)
harvid 0.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 580 kB
  • ctags: 767
  • sloc: ansic: 6,657; makefile: 238
file content (16 lines) | stat: -rw-r--r-- 526 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
VERSION?=$(shell git describe --tags HEAD || echo "X.X.X")
SUBDIRS = libharvid src doc

default: all

src: libharvid

$(SUBDIRS):
	$(MAKE) -C $@ $(MAKECMDGOALS)

all clean man install uninstall install-bin install-man uninstall-bin uninstall-man install-lib uninstall-lib: $(SUBDIRS)

dist:
	git archive --format=tar --prefix=harvid-$(VERSION)/ HEAD | gzip -9 > harvid-$(VERSION).tar.gz

.PHONY: clean all subdirs install uninstall dist install-bin install-man uninstall-bin uninstall-man install-lib uninstall-lib $(SUBDIRS)