Browse Source

Add release-win target

tags/v1.0
Bernhard Fröhlich 5 years ago
parent
commit
89a047973e
1 changed files with 11 additions and 1 deletions
  1. 11
    1
      Makefile

+ 11
- 1
Makefile View File

@@ -35,6 +35,9 @@ CFLAGS += -DHAVE_POSIX_MEMALIGN
35 35
 LDFLAGS	+= -lc
36 36
 endif
37 37
 
38
+# Release defines
39
+RELDIR	= drmdecrypt-1.0
40
+
38 41
 ##########################
39 42
 
40 43
 SRC	= AES.c AESNI.c drmdecrypt.c
@@ -49,6 +52,13 @@ install:	all
49 52
 	$(STRIP) drmdecrypt
50 53
 	$(INSTALL) drmdecrypt $(BINDIR)/drmdecrypt
51 54
 
55
+release-win:	all
56
+	rm -rf $(RELDIR)
57
+	mkdir $(RELDIR)
58
+	cp LICENSE README.md drmdecrypt.exe $(RELDIR)
59
+	$(STRIP) $(RELDIR)/*.exe
60
+
52 61
 clean:
53
-	rm -f *.o *.core drmdecrypt
62
+	rm -f *.o *.core drmdecrypt drmdecrypt.exe
63
+	rm -rf $(RELDIR)
54 64
 

Loading…
Cancel
Save