File: Makefile

package info (click to toggle)
frei0r 2.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,936 kB
  • sloc: ansic: 177,957; cpp: 7,881; xml: 50; makefile: 36
file content (22 lines) | stat: -rw-r--r-- 548 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
INCLUDES ?= -I ../include

PLUGINDIR ?= ../build/src

all: build scan-plugins

scan-plugins:
	@$(if $(wildcard ${PLUGINDIR}),,>&2 echo "Scan dir not found: ${PLUGINDIR}" && exit 1)
	@find ${PLUGINDIR} -type f -name '*.so' -exec ./frei0r-info {} \; > tmp.json
	@echo "[" > frei0r-plugin-list.json
	@head -n -1 tmp.json >> frei0r-plugin-list.json
	@echo "}\n]" >> frei0r-plugin-list.json
	@rm tmp.json
	$(info frei0r-plugin-list.json)

build:
	@${CC} -o frei0r-info -ggdb frei0r-info.c ${INCLUDES}

clean:
	rm -f *.o
	rm -f frei0r-info
	rm -f *.json