summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-10-27 18:00:17 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-10-27 18:00:17 +0100
commitcb2340a69969b7937c4f943c432820e61ad95011 (patch)
treecf24398a35f0d95b094b3ad56becd4286d4bebb2 /Makefile
parent048546318a08d2df09659dcf79cfb9625f00696f (diff)
Add clean
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 15 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 81562fa..b71a468 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,20 @@
-SRCS = ACSE-1.erl \
- CSTA-application-context-information-csta3.erl \
- Remote-Operations-Generic-ROS-PDUs.erl \
- KME-specific-types.erl \
- CSTA-device-identifiers.erl \
- CSTA-call-connection-identifiers.erl \
- CSTA-extension-types.erl \
- CSTA-security.erl \
- CSTA-escape-service.erl
+ASN1 = ACSE-1.asn1 \
+ CSTA-application-context-information-csta3.asn1 \
+ Remote-Operations-Generic-ROS-PDUs.asn1 \
+ KME-specific-types.asn1 \
+ CSTA-device-identifiers.asn1 \
+ CSTA-call-connection-identifiers.asn1 \
+ CSTA-extension-types.asn1 \
+ CSTA-security.asn1 \
+ CSTA-escape-service.asn1
+
+SRCS = $(ASN1:.asn1=.erl)
+HDRS = $(ASN1:.asn1=.hrl)
all: $(SRCS)
%.erl: lib/%.asn1
erlc $<
+
+clean:
+ rm -f $(SRCS) $(HDRS) *.beam *.asn1db